import { User } from "./user";
import { PageReq } from "./page";
import { Video } from "./video";

export interface Comment {
  id: string,
  content: string,
  createUser: string,
  videoId: string,
  createTime: string,
  likeCount: string,
  rootId: string,
  parentId: string,
  parentUserId: string,
  parentUserName: string,
  user: User,
  isLike: boolean,
  sonComments: Array<Comment>,
  sonTotal: string,
  showMore?: boolean
}

export interface CommentSave {
  content?: string,
  videoId?: string,
  rootId?: string,
  parentId?: string,
  userName?: string
}

export interface PageWithVideoId extends PageReq {
  videoId?: Video["id"]
}